#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int arr[] = { 33,5,22,44,55 };
	int len = sizeof(arr) / sizeof(int);
	int temp=arr[0];
	for (int i = 1; i < len;i++) 
	{
		if (temp<arr[i]) 
		{
			temp = arr[i];
		}
	}
	printf("%d\n",temp);
	for (int i = 1; i < len; i++)
	{
		if (temp > arr[i])
		{
			temp = arr[i];
		}
	}
	printf("%d\n", temp);
	return 0;
}